package com.jappyframework.api;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * A potion is applied to a method to expose it to the external world. It immediately
 * gets transformed to a HTTP request with following parameters. 
 *
 * method=methodName
 * _var1,_var2.... etc.
 *  
 * Note _ is used to put arguments into a seperate namespace. Else they may conflict with
 * system variables like method.
 * 
 * @author harsh
 */
@Retention(RetentionPolicy.SOURCE)
public @interface WebMethod {
	HTTPRequestType [] requestType() default {HTTPRequestType.GET};
}
